package com.rwaste.worker.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.rwaste.worker.entity.Drawmoney;
import com.rwaste.worker.mapper.DrawmoneyMapper;
import com.rwaste.worker.service.DrawmoneyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ly
 * @since 2021-09-25
 */
@Service
public class DrawmoneyServiceImpl extends ServiceImpl<DrawmoneyMapper, Drawmoney> implements DrawmoneyService {

    @Override
    public Drawmoney findAppealDrawById(String id) {
        Drawmoney drawmoney = baseMapper.selectById(id);
        return drawmoney;
    }

    @Override
    public List<Drawmoney> findALLAppealDrawById(String id) {
        QueryWrapper<Drawmoney> wrapper = new QueryWrapper<>();
        wrapper.eq("id", id);
        wrapper.eq("form", 0);
        List<Drawmoney> list = baseMapper.selectList(wrapper);
        return list;
    }

    @Override
    public List findDAById(String id) {
//        List list = DrawmoneyMapper.findDAById(id);
        return null;
    }
}
